/*
 * ExtentTime.cpp
 *
 *  Created on: Dec 23, 2011
 *      Author: Netali
 */

#include "ExtentTime.h"

ExtentTime::ExtentTime(){
	_timeExtents = new set<Extent*>();
}

ExtentTime::ExtentTime(int time){
	_time = time;
	_timeExtents = new set<Extent*>();
}

ExtentTime::~ExtentTime(){
	delete _timeExtents;
}

void ExtentTime::addExtent(Extent* ex){
	_timeExtents->insert(ex);
}

bool ExtentTime::isExist(Extent* ex){
	set<Extent*>::iterator it;
	it = _timeExtents->find(ex);
	if (it != _timeExtents->end())
		return true;
	return false;
}

